package com.alibaba.algo.cooperation.service;

import com.alibaba.algo.cooperation.entity.dto.res.DingTalkUserResDTO;

/**
 * @author admin
 */
public interface DingTalkService {

	/**
	 * 获取钉钉用户信息
	 *
	 * @param code
	 * @param appkey
	 * @param appSecret
	 * @return
	 */
	public DingTalkUserResDTO getUserGetResponse(String code, String appkey, String appSecret);

	/**
	 * 获取钉钉用户信息
	 *
	 * @param code
	 * @param appkey
	 * @param appSecret
	 * @param baseUrl
	 * @return
	 */
	public DingTalkUserResDTO getUserGetResponseNew(String code, String appkey, String appSecret, String baseUrl);

}
